package com.zhouyu.service;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.stereotype.Component;

/**
 * @author mimao funfind@yeah.net
 * @date ${{
 */
@Component
public class ApplicationListner implements ApplicationListener {


	@Override
	public void onApplicationEvent(ApplicationEvent event) {

		PayloadApplicationEvent applicationEvent = (PayloadApplicationEvent)event;
		//System.out.println(applicationEvent.getPayload());

	}
}
